﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Page.master" AutoEventWireup="true" Inherits="Genesi.login" Codebehind="login.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HtmlTitle" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ResultsPaneHeaderText" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ResultsPane" Runat="Server">
<table height="100%" width="100%">
        <tr>
            <td align="center" valign="middle">
                <table cellpadding="1" cellspacing="1"   id="tblLogin" runat="server" width="320">
                    <tr>
                        <td colspan="2">
                            &nbsp;</td>
                    </tr>
                    <tr valign="middle">
                        <td style="width: 88px" align="left">
                            <asp:Label ID="Label3" runat="server" Font-Names="Tahoma" Font-Size="8pt" Text="Nome Utente"></asp:Label>
                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox1"
                                ErrorMessage="*"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox1" runat="server" Font-Names="Tahoma" Font-Size="8pt" 
                                Width="230px" Height="20px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr valign="middle">
                        <td style="width: 88px" align="left">
                            <asp:Label ID="Label2" runat="server" Font-Names="Tahoma" Font-Size="8pt" Text="Password"></asp:Label>
                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox2"
                                ErrorMessage="*"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox2" runat="server" Font-Names="Tahoma" Font-Size="8pt" TextMode="Password"
                                Width="230px" Height="20px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr valign="middle">
                        <td colspan="2">&nbsp;
                        </td>
                    </tr>
                        <tr>
                        <td colspan="2" align="center">
                            <asp:Button ID="Button1" runat="server" Font-Names="Tahoma" Font-Size="8pt" OnClick="Button1_Click"
                                Text="Accedi" CausesValidation="False" 
                                Width="100px" BackColor="#F0F0F0" />
                        </td>
                    </tr>
                                      
                </table>
                

                  <table cellpadding="1" cellspacing="1" visible="false"
                     
                    id="tblCambia" runat="server" width="320">
                    <tr>
                        <td colspan="2">
                            &nbsp;</td>
                    </tr><tr><td colspan="2" align="center">
                            <asp:Label ID="Label4" runat="server" Font-Names="Tahoma" Font-Size="8pt" Text="E' necessario cambiare la password"
                                Font-Bold="True"></asp:Label>
                          </td></tr>
                    <tr valign="middle">
                        <td style="width: 118px" align="left">
                            <asp:Label ID="Label1" runat="server" Font-Names="Tahoma" Font-Size="8pt" 
                                Text="Password"></asp:Label>
                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtnewPassword"
                                ErrorMessage="*"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            <asp:TextBox ID="txtnewPassword" runat="server" Font-Names="Tahoma" Font-Size="8pt"
                                Width="200px" Height="20px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr valign="middle">
                        <td style="width: 118px" align="left">
                            <asp:Label ID="Label7" runat="server" Font-Names="Tahoma" Font-Size="8pt" 
                                Text="Conferma password"></asp:Label>
                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtConfirmPassword"
                                ErrorMessage="*"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            <asp:TextBox ID="txtConfirmPassword" runat="server" Font-Names="Tahoma" Font-Size="8pt"
                                TextMode="Password" Width="200px" Height="20px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr valign="middle">
                        <td colspan="2">&nbsp;
                        </td>
                    </tr>
                        <tr>
                        <td colspan="2" align="center">
                            <asp:Button ID="Button2" runat="server" Font-Names="Tahoma" Font-Size="8pt" OnClick="ButtonCambia_Click"
                                Text="Cambia" Width="100px" />
                        </td>
                    </tr>
                                      
                </table>
              


                <asp:Label ID="lbl_Err" runat="server" Font-Names="Tahoma" Font-Size="8pt" ForeColor="Red"></asp:Label>
                <br />
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtConfirmPassword"
                    ControlToValidate="txtnewPassword" ErrorMessage="Le password non corrispondono"></asp:CompareValidator>
            </td>
        </tr>
    </table>

</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="TasksPaneHeaderText" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TasksPane" Runat="Server">
</asp:Content>

